package com.leyou.common.vo;

import com.leyou.common.enums.LyExceptionEnums;

/**
 * @author linzx
 * @date 2020/3/25
 */
public class LyExceptionResult {
    private int status;
    private String message;
    private Long timestamp ;

    public LyExceptionResult() {
    }

    public LyExceptionResult(LyExceptionEnums enums) {
        this.status = enums.getCode();
        this.message = enums.getMsg();
        this.timestamp = System.currentTimeMillis();
    }
}
